package cn.wubo.base.controller;

import cn.wubo.base.entity.UserEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping(value = "/user")
public class UserController {

    @RequestMapping(value = "/findUserList")
    public List<UserEntity> findUserList(
            @RequestParam(name = "limit", required = false) String limit,
            @RequestParam(name = "offset", required = false) String offset,
            @RequestParam(name = "search", required = false) String search,
            @RequestParam(name = "sort", required = false) String sort,
            @RequestParam(name = "order", required = false) String order
    ) {
        return new ArrayList<UserEntity>();
    }

    @RequestMapping(value = "/save")
    public int save(@RequestParam(name = "user") UserEntity user) {
        return 1;
    }

}
